package com.example.administrator.seppdzxing;

import android.graphics.Rect;
import android.os.Bundle;
import android.os.Handler;

import com.example.administrator.seppdzxing.camera.CameraManager;
import com.google.zxing.Result;


public interface ICaptureView  {
    /**
     * 提供 CameraManager
     * @return
     */
    CameraManager getCameraManager();


    /**
     * 提供解码的handler
     * @return
     */
    Handler getScanHandler();


    /**activity
     * 获取裁剪区域
     * @return
     */
    Rect getCropRect();


    /**
     * 传输handler
     */
    void handleDecode(Result result, Bundle bundle);

    /**
     * 读取bitmap失败
     */
    void handleDecodeBitmapError();
}
